package cn.ztr.ymcc.feign;

import cn.ztr.ymcc.result.JsonResult;
import cn.ztr.ymcc.feign.impl.MediaFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignImpl.class)
public interface mediaFeign {
    /**
     * 根据课程id获取课程的文件资料
     * @param courseId
     * @return
     */
    @GetMapping("/mediaFile/getMediaFileByCourseId/{id}")
    public JsonResult getMediaFileByCourseId(@PathVariable("id")Long courseId);
}
